#f19052428肖汶浩
import cv2
import numpy as np
from showing import my_img_show

image = cv2.imread("222.jpg")
my_img_show("piece",image[0:200, 0:200])

cur_img = image.copy()

cur_img[:, :, 1] = 0
cur_img[:, :, 2] = 0

my_img_show(cur_img)

b, g, r = cv2.split(image)
zero_shape = np.zeros(image.shape[:2]).astype("uint8")
image = cv.merge([zero_shape, zero_shape, r])

my_img_show(cur_img)

